import {ref} from "vue";
import {TemplateTreeDTO} from "@/api/template/models";
import {format} from 'date-fns';

const dataSource = ref<TemplateTreeDTO[]>([])

dataSource.value.push({
    id: '1',
    pid: 'root',
    name: '名称',
    content: '内容',
    type: '类型',
    reminder: '提示说明',
    children: []
})
console.log(dataSource.value)
dataSource.value.push({
    id: '2',
    pid: 'root',
    name: '名称2',
    content: '内容2',
    type: '类型',
    reminder: '提示说明',
    children: []
})
console.log(dataSource.value)

console.log(new Date());

console.log(format(new Date(), "yyyy_MM_dd__HH_mm_ss_SSS"));